package com.admin.admin.modules.sys.service.impl;

import com.admin.admin.modules.sys.service.SysUserService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.admin.admin.modules.sys.mapper.SysUserMapper;
import com.admin.admin.modules.sys.entity.SysUser;
/**
 * @Auther: zhouyang
 * @Date: 2019/4/18 17:50
 * @Description:
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService{

    @Autowired
    private SysUserMapper sysUserMapper;


    @Override
    public Page<SysUser> getUserList() {
        Page<SysUser> page = new Page<>(2,3);
        page.setRecords(sysUserMapper.getUserList());
//        return this.list(null);
        return page;
    }
}
